<@_homeGroupList siteId=siteId userId=userId
            orderField=orderField orderType=orderType pageIndex=pageNum count=numPerPage>
<div class="pageHeader">
	<form id="pagerForm" onsubmit="return navTabSearch(this);" method="post">
		<#include "../include_page/paramters.html"/>
		<div class="searchBar">
			<ul class="searchContent">
				<li>
					<label>创始人：</label>
					<#include "../include_page/userId.html"/>
				</li>
			</ul>
			<div class="subBar">
				<ul>
					<li><button type="submit" class="buttonActive">搜索</button></li>
				</ul>
			</div>
		</div>
	</form>
</div>
<@_sysAuthorized roleIds=admin.roles urls='homeGroup/add,homeGroup/delete'><#assign authorizedMap=map/></@_sysAuthorized>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
		<#if authorizedMap['homeGroup/add']>
			<li><a href="homeGroup/add.html" target="navTab" rel="homeGroup/add"><i class="icon-plus-sign-alt icon-large"></i> 添加</a></li>
			<li><a href="homeGroup/add.html?id={sid}" target="navTab" rel="homeGroup/edit"><i class="icon-edit icon-large"></i> 修改</a></li>
		</#if>
		<#if authorizedMap['homeGroup/delete']>
			<li><a href="homeGroup/delete.do" title="确定要删除该些记录吗?" target="selectedTodo" rel="ids"><i class="icon-trash icon-large"></i> 批量删除</a></li>
		</#if>
		</ul>
	</div>
	<table class="list" width="100%" layoutH="99">
		<thead>
			<tr>
				<th>ID</th>
				<th>用户</th>
				<th>名称</th>
				<th>描述</th>
				<th orderField="users" class="<#if orderField??&&'users'==orderField><#if 'asc'=orderType>asc<#else>desc</#if><#else>order</#if>">用户数</th>
				<th orderField="createDate" class="<#if orderField??&&'createDate'==orderField><#if 'asc'=orderType>asc<#else>desc</#if><#else>order</#if>">创建日期</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<#list page.list as a>
				<@t.merge 'userIds' a.userId!/>
			</#list>
			<@_sysUser ids=t.userIds!><#assign userMap=map!/></@_sysUser>
			<#list page.list as a>
			<tr target="sid" rel="${a.id}">
				<td>${a.id!}</td>
				<td>${(userMap[a.userId?string].nickName)!}</td>
				<td>${a.name!}</td>
				<td>${a.description!}</td>
				<td>${a.users!}</td>
				<td>${a.createDate!}</td>
				<td>
				<#if authorizedMap['homeGroup/delete']>
					<a href="homeGroup/delete.do?ids=${a.id}" title="确定要删除这条记录么?" target="ajaxTodo">删除</a>
				</#if>
				</td>
			</tr>
			</#list>
		</tbody>
	</table>
	<#include "../include_page/page.html"/>
</div>
</@_homeGroupList>